#pragma once

#include <QMainWindow>
#include "ui_opcua_client.h"
#include "database_operator.h"
#include <qdatetime.h>
#include <open62541.h>
#include <qthread.h>
#include <string>

class opcua_client : public QMainWindow
{
	Q_OBJECT

public:
	opcua_client(QWidget *parent = nullptr);
	~opcua_client();
	void init_variables();

	QDateTime StartTime;
	QDateTime EndTime;
	RobotModule robot_module;
	VisionModule vision_module;
	StripModule strip_module;
	PRLine prline;
	StationInfo station_info;

	UA_Client* client;
	std::string server_address = "opc.tcp://localhost:4840";

	std::string client_log = "client_log.txt";
private:
	Ui::opcua_clientClass ui;
};
